home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1254 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: ix.netcom.com!netnews
  2. From: chuckh@ix.netcom.com (Chuck Hamilton)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: printf - adding commas to numbers
  5. Date: Fri, 12 Jan 1996 17:47:59 GMT
  6. Organization: Mercy Health Plan
  7. Message-ID: <4d66rt$cc0@cloner3.netcom.com>
  8. References: <4d15eq$lc5@ixnews2.ix.netcom.com> <4d3b5l$fsm@news.infi.net>
  9. NNTP-Posting-Host: ix-phi4-27.ix.netcom.com
  10. X-NETCOM-Date: Fri Jan 12  9:47:41 AM PST 1996
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. nngis@norfolk.infi.net (Greg DiGiorgio) wrote:
  14.  
  15. >*** Therefore, should "printf" which is big enough as it is, be changed
  16. >*** to incorporate commas like BASIC's "Print Using" stmt? How about
  17. >*** if I want to show currency in european format? Should "printf" do
  18. >*** that as well? What if I want "12345" to print vertically, one number
  19. >*** per line? Should print be able to do that?
  20.  
  21. You can't be serious! Comparing the need for numeric delimiters with
  22. vertical printing!?
  23.  
  24. Adding delmiters to numbers is used everyday, everywhere, by every
  25. company. I don't know of any the routinely do vertical printing
  26. though. Look at all the other stuff that printf can do that almost
  27. never gets used. When was the last time you used an "*" in a print
  28. specifier to pass the length of the output as a variable?
  29.  
  30. Delmiters are used pretty much any time you print numbers larger than
  31. 3 digits in business.
  32. --
  33. Chuck Hamilton
  34. chuckh@ix.netcom.com
  35.  
  36. Never share a foxhole with anyone braver than yourself!
  37.  
  38.